package com.zsr.example.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.zsr.example.entity.EduCourse;
import com.zsr.example.vo.CoursePublishVo;
import com.zsr.example.vo.front.CourseFrontInfoVo;

import java.util.List;

/**
 * <p>
 * 课程 Mapper 接口
 * </p>
 *
 * @author zsr
 * @since 2021-11-15
 */
public interface EduCourseMapper extends BaseMapper<EduCourse> {
    /**
     * 获取课程发布信息
     * @param id 课程id
     * @return
     */
    CoursePublishVo selectCoursePublishVoById(String id);

    /**
     * 获取课程信息
     * @param courseId 课程id
     * @return
     */
    CourseFrontInfoVo selectInfoWebById(String courseId);

    /**
     * 获取新增课程
     * @param day
     * @return
     */
    Integer selectCreateCount(String day);

    List<EduCourse> searchCourse(String keyword);
}
